package com.example.user.service;

import com.example.user.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    Long add(User user);

    List<User> getAll();

    PageInfo<List<User>> getList(int pageNum, int pageSize);

    User findById(Long id);

    List<User> findByIds(List<Long> ids);

    PageInfo<List<User>> findListByCondition(int pageNum, int pageSize, User user);

    Integer updateById(User user);

    Integer deleteById(Long id);

    Integer deleteByIds(List<Long> ids);

}
